<div class="title">
  <h1>Listing players</h1>
</div>

<div class="content">
  <table>
    <% for player in @players %>
      <tr>
        <td class="description"><%= link_to player.name, player %></td>
        <td id="buttons"><%= link_to 'Edit', edit_player_path(player) %></td>
        <td id="buttons"><%= link_to 'Destroy', player, :confirm => 'Are you sure?', :method => :delete %></td>
      </tr>
    <% end %>
  </table>
</div>

<% content_for :navigation do %>
  <li>
    <%= link_to 'Neuer Spieler', new_player_path %>
  </li>
<% end %>
